package com.gitee.kamismile.igniteEx.common;

import org.apache.ignite.IgniteSpringBean;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.context.annotation.ImportResource;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableAspectJAutoProxy(proxyTargetClass = true, exposeProxy = true)
@ImportResource("classpath*:config/spring*.xml")
@ComponentScan(basePackages = "com.gitee.kamismile.igniteEx")
@EnableScheduling
public class Application {



    public static void main(String[] args) throws InterruptedException {
        ConfigurableApplicationContext app = SpringApplication.run(Application.class, args);
        IgniteSpringBean ignite = app.getBean(IgniteSpringBean.class);
        System.out.println(ignite.active());
    }

}
